package ec.edu.udla.fichamedica.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.OneToMany;


/**
 * @author Paul Cahue\u00F1as
 * @version 1.0
 * @created 27-jun-2010 15:48:40
 */
@javax.persistence.Entity
public class MedicalCenter extends Entity {

	@Column
	private String name;
	
	@OneToMany(mappedBy="medicalCenter")
	private List<Attention> attentions;
	
	@OneToMany(mappedBy="medicalCenter")
	private List<Appointment> appointments;

	public MedicalCenter(){

	}

	@Override
	public void finalize() throws Throwable {
		super.finalize();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public List<Appointment> getAppointments() {
		return appointments;
	}

	public void setAppointments(List<Appointment> appointments) {
		this.appointments = appointments;
	}

	public List<Attention> getAttentions() {
		return attentions;
	}

	public void setAttentions(List<Attention> attentions) {
		this.attentions = attentions;
	}

}